package com.slwish.xty.ui.activity;

import android.os.Bundle;
import android.view.View;

import com.slwish.common.base.ToolbarActivity;
import com.slwish.common.config.Contants;
import com.slwish.common.utils.IntentUtils;
import com.slwish.xty.R;
import com.slwish.xty.config.SubscribeConfig;
import com.slwish.xty.entity.SubscribeModel;

import butterknife.OnClick;

/**
 * 预约成功显示
 */
public class SubscribeSuccessActivity extends ToolbarActivity {


    private SubscribeModel item;//预约成功实体

    @Override
    protected int getLayoutId() {
        return R.layout.act_subscribe_success;
    }

    @Override
    protected void initWidget() {
        super.initWidget();
        setTitle(R.string.yy_success_title);
        item = (SubscribeModel) getIntent().getSerializableExtra(Contants.MODEL);
    }

    @OnClick(R.id.btn_see)
    public void setOnClick(View view) {
        boolean isShowBottom = SubscribeConfig.isShow(item);

        Bundle bundle = new Bundle();
        bundle.putSerializable(Contants.MODEL, item);
        bundle.putBoolean("ISSHOWBOTTOM", isShowBottom);
        IntentUtils.startActivity(mContext, SubscribeInfoActivity.class, bundle);
        finish();
    }
}
